package app.itw.tison.cloud.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import java.io.Serializable;
import java.util.Date;
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Order implements Serializable {

  //订单id
  private String id;
  //订单用户
  private String uid;
  //订单备注
  private String remarks;
  //订单金额
  private int amount;
  //创建时间
  @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
  private Date createTime;

  public Order() {}

  public Order(String id, String uid, String remarks, int amount, Date createTime) {
    this.id = id;
    this.uid = uid;
    this.remarks = remarks;
    this.amount = amount;
    this.createTime = createTime;
  }

  public String getId() {
    return id;
  }

  public String getUid() {
    return uid;
  }

  public String getRemarks() {
    return remarks;
  }

  public int getAmount() {
    return amount;
  }

  public Date getCreateTime() {
    return createTime;
  }

  public void setId(String id) {
    this.id = id;
  }

  public void setUid(String uid) {
    this.uid = uid;
  }

  public void setRemarks(String remarks) {
    this.remarks = remarks;
  }

  public void setAmount(int amount) {
    this.amount = amount;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  @Override
  public String toString() {
    return "Order{" +
        "id='" + id + '\'' +
        ", uid='" + uid + '\'' +
        ", remarks='" + remarks + '\'' +
        ", amount=" + amount +
        ", createTime=" + createTime +
        '}';
  }
}
